package com.plant.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * PgcHottestFaq entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "pgc_hottest_faq", catalog = "mr_plants")
public class PgcHottestFaq implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userId;
	private Integer faqId;
	private String faqTitle;
	private Integer sort;
	private Integer faqAnswerCount;
	private Integer faqAnswerLike;
	private Timestamp faqCreateTime;
	private Timestamp createTime;

	// Constructors

	/** default constructor */
	public PgcHottestFaq() {
	}

	/** full constructor */
	public PgcHottestFaq(Integer userId, Integer faqId, String faqTitle,
			Integer sort, Integer faqAnswerCount, Integer faqAnswerLike,
			Timestamp faqCreateTime, Timestamp createTime) {
		this.userId = userId;
		this.faqId = faqId;
		this.faqTitle = faqTitle;
		this.sort = sort;
		this.faqAnswerCount = faqAnswerCount;
		this.faqAnswerLike = faqAnswerLike;
		this.faqCreateTime = faqCreateTime;
		this.createTime = createTime;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "user_id")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "faq_id")
	public Integer getFaqId() {
		return this.faqId;
	}

	public void setFaqId(Integer faqId) {
		this.faqId = faqId;
	}

	@Column(name = "faq_title")
	public String getFaqTitle() {
		return this.faqTitle;
	}

	public void setFaqTitle(String faqTitle) {
		this.faqTitle = faqTitle;
	}

	@Column(name = "sort")
	public Integer getSort() {
		return this.sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	@Column(name = "faq_answer_count")
	public Integer getFaqAnswerCount() {
		return this.faqAnswerCount;
	}

	public void setFaqAnswerCount(Integer faqAnswerCount) {
		this.faqAnswerCount = faqAnswerCount;
	}

	@Column(name = "faq_answer_like")
	public Integer getFaqAnswerLike() {
		return this.faqAnswerLike;
	}

	public void setFaqAnswerLike(Integer faqAnswerLike) {
		this.faqAnswerLike = faqAnswerLike;
	}

	@Column(name = "faq_create_time", length = 19)
	public Timestamp getFaqCreateTime() {
		return this.faqCreateTime;
	}

	public void setFaqCreateTime(Timestamp faqCreateTime) {
		this.faqCreateTime = faqCreateTime;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

}